package com.baigt.jvm.other;

/**
 * 类功能描述:
 *
 * @author baigt
 * @version V1.0
 * @since 2019-06-16 00:40
 */
public class TestStatic {
    static int a;
    int b;
    static int c;
    public int aMethod(){
        a++;
        return a;
    }
    public int bMethod(){
//        b++;
        return b++;
    }
    public int cMethod(){
        c++;
        return c;
    }

    public static void main(String[] args) {
        TestStatic t1=new TestStatic();
        t1.aMethod();
        System.out.println(t1.aMethod());
        TestStatic t2=new TestStatic();
        t2.bMethod();
        System.out.println(t2.bMethod());
        TestStatic t3=new TestStatic();
        t3.cMethod();
        System.out.println(t3.cMethod());
    }

}
